package models

type SysExercise struct {
	Model
	KnowledgePointId int     `json:"knowledge_point_id" gorm:"int(10);comment:知识点ID"`
	SubjectType      string  `json:"subject_type" gorm:"type:varchar(20);comment:题目类型"`
	Content          string  `json:"content" gorm:"type:text;comment:题目内容"`
	Answer           string  `json:"answer" gorm:"type:text;not null;comment:答案"`
	CorrectAnswer    string  `json:"correct_answer" gorm:"type:text;comment:正确答案"`
	Analysis         string  `json:"analysis" gorm:"type:text;comment:题目解析"`
	Score            float64 `json:"score" gorm:"smallint(2);comment:分值"`
	Subject          string  `json:"subject" gorm:"type:varchar(20);comment:科目类型 大学英语/大学数学/大学语文"`
	ControlBy
	ModelTime
}

func (SysExercise) TableName() string {
	return "sys_question_bank"
}
